<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>lineaer gradient 颜色的渐变</title>
  <style>
    main {
      height: 50px;
      background: repeating-linear-gradient(to right,red, blue 5%, white,black, pink, orange,cyan, gray,lightblue 23%);
    }
    article{
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin-top: 20px;
      background: radial-gradient(circle at 10% 10%, red, blue);
    }
    nav{
      height: 50px;
      /* 第一个参数是方向， 如果没给默认的是按照文档流方向， 从上到小*/
      /* 从左向右， 可以是to right， 也可以是rotate(360deg)*/
      background:linear-gradient(to right,rgba(255,255,0,1), rgba(255,255,255,1));
    }
  </style>
</head>
<body>
  <main></main>
  <article></article>
  <nav></nav>
</body>
</html>
